package com.wbihua.common.metrics.type;

import lombok.Getter;

@Getter
public enum EventGaugeType {
    //http_inprogress_requests
    INPROGRESS_REQUESTS("http.inprogress.requests"),
    //tag_http_inprogress
    TAG_INPROGRESS_REQUESTS("tag.http.inprogress", new String[]{"path", "method"}, "requests","Inprogress requests."),
    //prometheus_http_inprogress_requests
    PROMETHEUS_INPROGRESS_REQUESTS("prometheus_http_inprogress_requests", new String[]{"path", "method"}, "Inprogress requests.");

    private final String name;
    private String[] tags = new String[]{};
    private String description;
    private String baseUnit;
    private String[] labelNames = new String[]{};
    private String help;
    EventGaugeType(String name) {
        this.name = name;
    }

    EventGaugeType(String name, String[] tags, String baseUnit, String description) {
        this.name = name;
        this.tags = tags;
        this.baseUnit = baseUnit;
        this.description = description;
    }

    EventGaugeType(String name, String[] labelNames, String help) {
        this.name = name;
        this.labelNames = labelNames;
        this.help = help;
    }
}
